home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 8 / Night Owl CD-ROM (NOPV8) (Night Owl Publisher) (1993).ISO / 034a / tuthex.arj / TUTHEX5.TXT < prev    next >
Text File  |  1992-05-14  |  3KB  |  60 lines

  1. TUTORIAL - "HEXING 101" PART 5
  2. On to a first, "easy" hex job.  Copy your GO229.SPC file to
  3. GO229B.EXP to create a "working" copy.  Take a look at your
  4. printout of the GO229.SPC file (or just access the file via
  5. PCT).  At the PCTools address (0108), which is the same as
  6. DEBUG 208, you'll find the start of a weapons string.  This
  7. is for the 2 x 2205 pound bombs.  Well, that's no fun, let's
  8. make it 8 x 551 pound bombs instead!  <G>.  As you should
  9. remember, we know this is a bomb string because of the
  10. initial "02" byte at the xxx8 address.  The second byte
  11. value, "16" merely puts the right words in the weapons menu.
  12. There is no string in the BGERMSTR.PAC that matches 8 x 551
  13. pound bombs, so you could leave it alone, or change it to 12,
  14. which would then read 2 x 551 pound bombs.  We'll leave it
  15. alone.  The fifth byte of the string is 02, the ammo byte, so
  16. we'll up that value to 08 for eight bombs (remember that hex
  17. and decimal are the same from numerals 0 -9).  Now, we're not
  18. done.  Analysis of the 9th and 10th bytes shows that they
  19. equal the weight of a single bomb.  The program then
  20. multiplies this by your number of bombs.  It is not the total
  21. bombweight, as is evident when you compare strings for
  22. differing numbers of the same size bombs.  Currently, these
  23. two bytes are 9D 08, (which is 2205 in decimal).  We need to
  24. change this to be 27 02, the weight of a 551 pound bomb.
  25. Again, the conversion:
  26.          2        7         0         2
  27.       (2x16)    (7x1)   (0x4096)   (2x256)
  28. These all add up to a decimal value of 551.  By the way, the
  29. weight of the bomb is equal to it's "firepower".  I found
  30. this out while attempting to make itty bitty cluster bombs.
  31. So, to make 8 x 551 pound bombs, we must make two changes:
  32. the 02 changes to 08, and the 9D 08 needs to be 27 02.
  33. However, since they are not consecutive, when we write the
  34. debug, the simplest way to write it is to include the old
  35. values inbetween the two changes.  So here is our DEBUG:
  36. DEBUG GO229B.EXP
  37. -E 208 02 16 00 00 08 00 30 75 27 02
  38. -W
  39. -Q
  40. Actually, there is a simpler DEBUG.  The weapons string
  41. starts at 208, but we don't begin making changes until 4
  42. bytes later (the 02 becomes 08).  So really, a shorter DEBUG
  43. would be:  DEBUG GO229B.EXP
  44. -E 20C 08 00 30 75 27 02
  45. -W
  46. -Q
  47. Therefore, the original weapons string and our new string:
  48. 02 16 00 00 02 00 30 75 9D 08 01 00 32 00 5E 01
  49. 02 16 00 00 08 00 30 75 27 02 01 00 32 00 5E 01
  50. Try this out, and if you've already backed up your GO229.SPC
  51. file, you can copy this mod into it by typing from dos, COPY
  52. GO229B.EXP G0229.SPC.  Then fly the plane!!  You will be
  53. happily rewarded by 8 bombs in the bomb counter.  Not really
  54. an unrealistic mod, as the overall bomb weight stays the
  55. same.  But this is just the tip of the iceberg!!  The whole
  56. point of hexing is that it gives you some control over the
  57. program.
  58.  
  59.  
  60.